Question-learn-test-feedback pattern to test emerging software construction paradigms
نویسنده
چکیده
Factory 1 client 1 abstract factory class n concrete factory m abstract products p concrete products p≤ X ≤n*p no Decorator 1 interface 1 component class 1 abstract decorator class n concrete decorator classes nor 1≤ X ≤n Visitor n visited elements (ConcreteElement) p visitors (ConcreteVisitor) no n*p Table 2.1: Excerpt of a testability catalog for design patterns 2.1.2 Understanding the impact of contracts on vigilance and diagnosability Design by Contract ©is a lightweight technique for embedding elements of formal specification (such as invariants, preand post-conditions) into an object-oriented design. When contracts are made executable, they can play the role of embedded, on-line oracles. Executable contracts allow components to be responsive to erroneous states, and thus may help in detecting and locating faults. In this work, we define vigilance as the degree to which a program is able to detect an erroneous state at runtime. Diagnosability represents the effort needed to locate a fault once it has been detected. In order to estimate the benefit of using Design by Contract ©, we formalize both notions of Vigilance and Diagnosability as software quality measures. The main steps of measure elaboration are given, from informal definitions of the factors to be measured to the mathematical model of the measures [87, 86]. As is the standard in this domain, the parameters are then fixed through actual measures, based on a mutation analysis in our case. Several measures are presented that reveal and estimate the contribution of contracts to the overall quality of a system in terms of vigilance and diagnosability. The major results from this study are experimental demonstrations of the benefit of using contracts in order to improve software quality. Figure 2.2 summarizes the impact of contracts on the vigilance of three programs. The global vigilance corresponds to the ratio of errors that can be internally detected by the programs, whereas the isolated vigilance corresponds to the quality of the local contracts of each class. This chart indicates that even the introduction of poor contracts (e.g., that can detect 20% of the errors) on all classes can greatly improve the global vigilance of the program (if local contracts
منابع مشابه
Improvement of project management office performance: An empirical investigation of effective factors in iranian construction industry
Project management office (PMO) is a new emerging concept in Iranian construction industry. Executives expect this organizational unit to add value to the business, and meet the demands of stakeholders by performing specialized tasks ranging from providing project management support to portfolio management. In this regard, PMO managers have long faced the question of how to improve the performa...
متن کاملWhen does the test-study-test sequence optimize learning and retention?
In educational learning contexts, unlike typical contemporary laboratory paradigms, students have repeated opportunities to study and learn target material, thereby potentially allowing different sequences of testing and studying. We investigated learning and retention after several plausible sequences that were patterned on a classic memory paradigm. After initially reading a research methods ...
متن کاملEffect of age and three different feedback receiving on a hand movement pattern
The purpose of this study was to determine the effect of two different age groups (children and young adult) to learning of temporal-special coordination hand movement pattern. Sixty subjects according to the age (children – young adult) and receiving feedback (100%, omitted, self-control) were randomly divided into six groups. This study was done in three days. All subjects practice 100 trails...
متن کاملPulmonary Function Test in Construction Workers and a Referent Food Industry Group: A Comparative Study
Background & Objectives: Almost 9 to 12% of construction workers are exposed to dust in their workplace. However, few studies have assessed the risks and complications of this exposure. This study aims to evaluate the pulmonary effects of construction workers’ occupational exposure to dust. Materials & Methods: This cross-sectional study was conducted in the southeast of Fars province. In this ...
متن کاملAn Empirical Examination of Test-Driven Development
Despite a half century of advances, the software construction industry still shows signs of immaturity [1]. Professional software development organizations continue to struggle to produce reliable software in a predictable and repeatable manner. While a variety of development practices are advocated that might improve the situation, developers are often reluctant to adopt new, potentially bette...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010